A GtkFunction needs to return a value for deterministic behaviour. Also
authorElliot Lee <sopwith@src.gnome.org>
Wed, 3 Nov 1999 15:57:16 +0000 (15:57 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Wed, 3 Nov 1999 15:57:16 +0000 (15:57 +0000)
A GtkFunction needs to return a value for deterministic behaviour. Also put dot printing back in.

demos/testpixbuf.c
gdk-pixbuf/ChangeLog

index 4fedda2b9205c8853fb59f0f7a2bace63af95016..2e7490cc18687996aabc2bcffbea72c1be18ed6a 100644 (file)
@@ -421,6 +421,8 @@ update_timeout(gpointer data)
         if (*window_loc != NULL) {
                 gtk_widget_queue_draw(*window_loc);
         }
+
+       return TRUE;
 }
 
 static void
@@ -520,7 +522,7 @@ main (int argc, char **argv)
                                int nbytes;
                                nbytes = fread(buf, 1, readlen, file);
 
-/*                                printf(".");*/
+                                printf(".");
                                 fflush(stdout);
                                 
                                 if (gdk_pixbuf_loader_write (GDK_PIXBUF_LOADER (pixbuf_loader), buf, nbytes) == FALSE)
@@ -529,7 +531,7 @@ main (int argc, char **argv)
                                while (gtk_events_pending())
                                        gtk_main_iteration();
                         }
-/*                     printf("\n");*/
+                       printf("\n");
                        gtk_timeout_remove (timeout);
                         gdk_pixbuf_loader_close (GDK_PIXBUF_LOADER (pixbuf_loader));
                        gtk_object_destroy (GTK_OBJECT(pixbuf_loader));
index aa1cc0ae53de6c9198a60320c428051bd4fc0f52..8be1d192fd0cff2fbd93c022116ea100673685c0 100644 (file)
@@ -1,3 +1,6 @@
+       * src/testpixbuf.c: A GtkFunction needs to return a value for deterministic behaviour.
+         Also put dot printing back in.
+
 1999-11-03    <jrb@redhat.com>
 
        * src/io-gif.c (gif_get_extension): Read 'til the next empty block